using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.Permission;

/// <summary>
/// 创建权限Dto
/// </summary>
public class CreatePermissionDto
{
    [Required(ErrorMessage = "权限名称不能为空")]
    [StringLength(20, ErrorMessage = "权限名称长度不能超过50个字符")]
    public string PermissionName { get; set; } = string.Empty;

    [Required(ErrorMessage = "权限代码不能为空")]
    [StringLength(20, ErrorMessage = "权限代码长度不能超过50个字符")]
    public string Code { get; set; } = string.Empty;

    public bool IsActive { get; set; }

}
